package grape.common.rest.vo;

import cn.hutool.core.date.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * Created by yangwei
 * Created at 2020/5/22 15:01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="当前时间数据响应对象")
public class NowVo extends BaseVo{

    public NowVo(){
        this.now = DateUtil.current(false);
        this.nowDate = DateUtil.date(this.now).toDateStr();
        this.nowDateTime = DateUtil.date(this.now).toString();
    }

    @ApiModelProperty(value = "现在的日期")
    private String nowDate;

    @ApiModelProperty(value = "现在的日期时间")
    private String nowDateTime;

    @ApiModelProperty(value = "现在的时间戳")
    private Long now;

}
